#include <cstdio>


int main() {
	int num;
	scanf("%d", &num);
	int b = num/100;
	for (int i=0; i<b; i++) {
		printf("B");
	}
	int s = (num%100) / 10;
	for (int i=0; i<s; i++) {
		printf("S");
	}
	int g = num%10;
	for (int i=1; i<=g; i++) {
		printf("%d", i);
	}
	printf("\n");
	return 0;
}
